package com.xxmw.transaction.common.utils.symbolFormat.impl;

import com.xxmw.transaction.common.utils.symbolFormat.SymbolFormat;

public class BitforexSymbolFormat implements SymbolFormat {

    private static final String PERFIX = "coin-";


    @Override
    public String symbolFormat(String baseCurrency, String quoteCurrency) {
        return PERFIX + baseCurrency + "-" + quoteCurrency;
    }

    @Override
    public String symbolStandardization(String symbol) {
        String[] strings = symbol.replace(PERFIX, "").split("-");
        return strings[1]+strings[0];
    }
}
